﻿<!--#include file="const.asp" -->
<!--#include file="common/funciton.asp" -->
<%
On Error Resume Next
Response.Charset = "UTF-8"
Response.ContentType = "text/xml"
Response.Write("<?xml version='1.0' encoding='UTF-8'?>")
%>
<rss version="2.0">
	<channel>
		  <title><![CDATA[ <%=BlogName%> ]]></title>
		  <link><![CDATA[ http://<%=request.ServerVariables("HTTP_HOST")%>/ ]]></link>
		  <description><![CDATA[ <%=Blogdescription%> ]]></description>
   		  <language>zh-cn</language>
   		  <copyright><![CDATA[ Copyright 2011 LJBlog V1.0 ]]></copyright>
   		  <webMaster>
   		  <![CDATA[lijy_980720@126.com(李佳赟)]]>
   		  </webMaster>
   		  <generator>LJBlog1 V1.0</generator>
			<%for i=0 to diarynum
			i_=diarynum-i
			diary_tittle=GDInfo("diary_tittle",i_)
			diary_time=GDInfo("diary_time",i_)
			diary_kind=GDInfo("diary_kind",i_)
			diary_path=GDInfo("diary_path",i_)
			diary_tags=GDInfo("diary_tags",i_)
			diary_un=GDInfo("diary_un",i_)
			%>
		  <item>
			<title><![CDATA[ <%=diary_tittle%> ]]></title>
			<link><![CDATA[ <%="article.asp?id="&GDInfo("diary_id",i_)%> ]]></link>
			<description><![CDATA[
				<%Set fs=Server.CreateObject("Scripting.FileSystemObject")
				Set f=fs.OpenTextFile(Server.MapPath(diary_path), 1)
				Response.Write(f.Readall)
				f.Close
				Set f=nothing%> ]]>
			</description>
			<pubDate><![CDATA[ <%=DateTimeToGMT(diary_time)%> ]]></pubDate>
			<category><![CDATA[ <%=diary_kind%> ]]></category>
			<author><![CDATA[ <%=diary_un%> ]]></author>
		  </item>
			<%next%>
	</channel>
</rss>